package com.sylli.oeuf.server.object.transferable;

public class MapMonsterTO extends BasedTO {

	/**
	 * 
	 */
	private static final long serialVersionUID = -2681134945919547400L;
	
	private int blockId;
	
	private int mapId;
	
	private int monsterId;
	
	private float spawnPerc;

	@Override
	public boolean equals(Object obj) {
		if (obj instanceof MapMonsterTO) {
			MapMonsterTO mmo = (MapMonsterTO) obj;
			return mmo.blockId == blockId
				&& mmo.mapId == mapId
				&& mmo.monsterId == monsterId
				&& mmo.spawnPerc == spawnPerc;
		}
		return false;
	}

	@Override
	public String toString() {
		return "MapMonster: mapId=" + mapId
			+ ", monsterId=" + monsterId
			+ ", spawPercent=" + spawnPerc;
	}

	public int getMonsterId() {
		return monsterId;
	}

	public void setMonsterId(int monsterId) {
		this.monsterId = monsterId;
	}

	public float getSpawnPerc() {
		return spawnPerc;
	}

	public void setSpawnPerc(float spawnPerc) {
		this.spawnPerc = spawnPerc;
	}

	public int getBlockId() {
		return blockId;
	}

	public void setBlockId(int blockId) {
		this.blockId = blockId;
	}

	public int getMapId() {
		return mapId;
	}

	public void setMapId(int mapId) {
		this.mapId = mapId;
	}

	
}
